package com.etooling.pdm.entity;

import com.etooling.framework.svo.AbstractEntity;
import lombok.Data;

import javax.persistence.*;

/**
 * 规格属性配置
 * @author dan
 * @date 2023/12/25 9:28
 */
@Data
@Entity
@Table(name = "t_goods_specs_prop_setting", schema = "pdm")
public class GoodsSpecsPropSetting extends AbstractEntity {
    public static final String STATUS_RUNNING = "启用";
    public static final String STATUS_DELETE = "删除";

    String name;
    Integer seq;//显示顺序
    String status;//状态
    String companyId;//所属帐套
    Goods goods;//所属产品

    @ManyToOne(targetEntity = Goods.class, fetch = FetchType.EAGER)
    @JoinColumn(name = "goods_id")
    public Goods getGoods() {
        return goods;
    }

}
